package com.test.designModel.beanfactory.cenue;

import com.test.designModel.beanfactory.Circle;
import com.test.designModel.beanfactory.Shape;

public class Context {

    private Shape shape;

    public Context(Shape shape){
        this.shape = shape;
    }

    public void draw(){
         shape.draw();
    }

    public static void main(String[] args){
        Context context=new Context(new Circle());
        context.draw();
    }
}
